package cn.istartfinancial.config.spring;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.BeanNameAware;
import org.springframework.context.annotation.Configuration;

/**
 * @author: Nzp
 * @date: 2018/8/29
 * @description: 显示当前bean再factory中的id或name
 */
@Slf4j
@Configuration
public class BeanName implements BeanNameAware
{

    @Override
    public void setBeanName(String name)
    {
        log.debug("BeanNameAware-------->:" + name);
    }
}
